<?php

namespace App\Http\Controllers\Mini;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;

class UserController extends Controller
{
    /**
     * 用户注册请求
     */
    public function register(Request $request)
    {
        $data = $request->all();
        //请求接口
        $response = curlPost('apis.zhangshan.xyz/api/register',$data);
        echo $response;
    }
    /**
     * 用户登录请求
     */
    public function login(Request $request)
    {
        $data = $request->all();
        //请求接口
        $response = curlPost('apis.zhangshan.xyz/api/login',$data);
        echo $response;
    }
}
